Integrand size = 27, antiderivative size = 90 \[ \int \cot ^2(c+d x) \csc ^4(c+d x) (a+b \sin (c+d x)) \, dx=\frac {b \text {arctanh}(\cos (c+d x))}{8 d}-\frac {a \cot ^3(c+d x)}{3 d}-\frac {a \cot ^5(c+d x)}{5 d}+\frac {b \cot (c+d x) \csc (c+d x)}{8 d}-\frac {b \cot (c+d x) \csc ^3(c+d x)}{4 d} \]
[Out]
Time = 0.10 (sec) , antiderivative size = 90, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {2917, 2687, 14, 2691, 3853, 3855} \[ \int \cot ^2(c+d x) \csc ^4(c+d x) (a+b \sin (c+d x)) \, dx=-\frac {a \cot ^5(c+d x)}{5 d}-\frac {a \cot ^3(c+d x)}{3 d}+\frac {b \text {arctanh}(\cos (c+d x))}{8 d}-\frac {b \cot (c+d x) \csc ^3(c+d x)}{4 d}+\frac {b \cot (c+d x) \csc (c+d x)}{8 d} \]
[In]
[Out]
Rule 14
Rule 2687
Rule 2691
Rule 2917
Rule 3853
Rule 3855
Rubi steps \begin{align*} \text {integral}& = a \int \cot ^2(c+d x) \csc ^4(c+d x) \, dx+b \int \cot ^2(c+d x) \csc ^3(c+d x) \, dx \\ & = -\frac {b \cot (c+d x) \csc ^3(c+d x)}{4 d}-\frac {1}{4} b \int \csc ^3(c+d x) \, dx+\frac {a \text {Subst}\left (\int x^2 \left (1+x^2\right ) \, dx,x,-\cot (c+d x)\right )}{d} \\ & = \frac {b \cot (c+d x) \csc (c+d x)}{8 d}-\frac {b \cot (c+d x) \csc ^3(c+d x)}{4 d}-\frac {1}{8} b \int \csc (c+d x) \, dx+\frac {a \text {Subst}\left (\int \left (x^2+x^4\right ) \, dx,x,-\cot (c+d x)\right )}{d} \\ & = \frac {b \text {arctanh}(\cos (c+d x))}{8 d}-\frac {a \cot ^3(c+d x)}{3 d}-\frac {a \cot ^5(c+d x)}{5 d}+\frac {b \cot (c+d x) \csc (c+d x)}{8 d}-\frac {b \cot (c+d x) \csc ^3(c+d x)}{4 d} \\ \end{align*}
Time = 0.10 (sec) , antiderivative size = 177, normalized size of antiderivative = 1.97 \[ \int \cot ^2(c+d x) \csc ^4(c+d x) (a+b \sin (c+d x)) \, dx=\frac {2 a \cot (c+d x)}{15 d}+\frac {b \csc ^2\left (\frac {1}{2} (c+d x)\right )}{32 d}-\frac {b \csc ^4\left (\frac {1}{2} (c+d x)\right )}{64 d}+\frac {a \cot (c+d x) \csc ^2(c+d x)}{15 d}-\frac {a \cot (c+d x) \csc ^4(c+d x)}{5 d}+\frac {b \log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )}{8 d}-\frac {b \log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )}{8 d}-\frac {b \sec ^2\left (\frac {1}{2} (c+d x)\right )}{32 d}+\frac {b \sec ^4\left (\frac {1}{2} (c+d x)\right )}{64 d} \]
[In]
[Out]
Time = 0.38 (sec) , antiderivative size = 110, normalized size of antiderivative = 1.22
method | result | size |
derivativedivides | \(\frac {a \left (-\frac {\cos ^{3}\left (d x +c \right )}{5 \sin \left (d x +c \right )^{5}}-\frac {2 \left (\cos ^{3}\left (d x +c \right )\right )}{15 \sin \left (d x +c \right )^{3}}\right )+b \left (-\frac {\cos ^{3}\left (d x +c \right )}{4 \sin \left (d x +c \right )^{4}}-\frac {\cos ^{3}\left (d x +c \right )}{8 \sin \left (d x +c \right )^{2}}-\frac {\cos \left (d x +c \right )}{8}-\frac {\ln \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right )}{8}\right )}{d}\) | \(110\) |
default | \(\frac {a \left (-\frac {\cos ^{3}\left (d x +c \right )}{5 \sin \left (d x +c \right )^{5}}-\frac {2 \left (\cos ^{3}\left (d x +c \right )\right )}{15 \sin \left (d x +c \right )^{3}}\right )+b \left (-\frac {\cos ^{3}\left (d x +c \right )}{4 \sin \left (d x +c \right )^{4}}-\frac {\cos ^{3}\left (d x +c \right )}{8 \sin \left (d x +c \right )^{2}}-\frac {\cos \left (d x +c \right )}{8}-\frac {\ln \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right )}{8}\right )}{d}\) | \(110\) |
parallelrisch | \(\frac {-6 a \left (\cot ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+6 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) a -15 b \left (\cot ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+15 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b -10 a \left (\cot ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+10 a \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+60 a \cot \left (\frac {d x}{2}+\frac {c}{2}\right )-60 a \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-120 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b}{960 d}\) | \(128\) |
risch | \(-\frac {15 b \,{\mathrm e}^{9 i \left (d x +c \right )}+240 i a \,{\mathrm e}^{6 i \left (d x +c \right )}+90 b \,{\mathrm e}^{7 i \left (d x +c \right )}+80 i a \,{\mathrm e}^{4 i \left (d x +c \right )}+80 i a \,{\mathrm e}^{2 i \left (d x +c \right )}-90 b \,{\mathrm e}^{3 i \left (d x +c \right )}-16 i a -15 b \,{\mathrm e}^{i \left (d x +c \right )}}{60 d \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{5}}-\frac {b \ln \left ({\mathrm e}^{i \left (d x +c \right )}-1\right )}{8 d}+\frac {b \ln \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )}{8 d}\) | \(148\) |
norman | \(\frac {-\frac {a}{160 d}-\frac {a \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{60 d}+\frac {5 a \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{96 d}-\frac {5 a \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{96 d}+\frac {a \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{60 d}+\frac {a \left (\tan ^{12}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{160 d}-\frac {b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{64 d}-\frac {b \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{64 d}+\frac {b \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{64 d}+\frac {b \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{64 d}}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5} \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}-\frac {b \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 d}\) | \(203\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 169 vs. \(2 (80) = 160\).
Time = 0.28 (sec) , antiderivative size = 169, normalized size of antiderivative = 1.88 \[ \int \cot ^2(c+d x) \csc ^4(c+d x) (a+b \sin (c+d x)) \, dx=\frac {32 \, a \cos \left (d x + c\right )^{5} - 80 \, a \cos \left (d x + c\right )^{3} + 15 \, {\left (b \cos \left (d x + c\right )^{4} - 2 \, b \cos \left (d x + c\right )^{2} + b\right )} \log \left (\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) \sin \left (d x + c\right ) - 15 \, {\left (b \cos \left (d x + c\right )^{4} - 2 \, b \cos \left (d x + c\right )^{2} + b\right )} \log \left (-\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) \sin \left (d x + c\right ) - 30 \, {\left (b \cos \left (d x + c\right )^{3} + b \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{240 \, {\left (d \cos \left (d x + c\right )^{4} - 2 \, d \cos \left (d x + c\right )^{2} + d\right )} \sin \left (d x + c\right )} \]
[In]
[Out]
Timed out. \[ \int \cot ^2(c+d x) \csc ^4(c+d x) (a+b \sin (c+d x)) \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.19 (sec) , antiderivative size = 92, normalized size of antiderivative = 1.02 \[ \int \cot ^2(c+d x) \csc ^4(c+d x) (a+b \sin (c+d x)) \, dx=-\frac {15 \, b {\left (\frac {2 \, {\left (\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )\right )}}{\cos \left (d x + c\right )^{4} - 2 \, \cos \left (d x + c\right )^{2} + 1} - \log \left (\cos \left (d x + c\right ) + 1\right ) + \log \left (\cos \left (d x + c\right ) - 1\right )\right )} + \frac {16 \, {\left (5 \, \tan \left (d x + c\right )^{2} + 3\right )} a}{\tan \left (d x + c\right )^{5}}}{240 \, d} \]
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 144, normalized size of antiderivative = 1.60 \[ \int \cot ^2(c+d x) \csc ^4(c+d x) (a+b \sin (c+d x)) \, dx=\frac {6 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 15 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 10 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 120 \, b \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}\right ) - 60 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + \frac {274 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 60 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} - 10 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 15 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 6 \, a}{\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5}}}{960 \, d} \]
[In]
[Out]
Time = 10.01 (sec) , antiderivative size = 143, normalized size of antiderivative = 1.59 \[ \int \cot ^2(c+d x) \csc ^4(c+d x) (a+b \sin (c+d x)) \, dx=\frac {a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{96\,d}-\frac {a\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{16\,d}+\frac {a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{160\,d}+\frac {b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{64\,d}-\frac {b\,\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{8\,d}-\frac {{\mathrm {cot}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,\left (-2\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+\frac {a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{3}+\frac {b\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2}+\frac {a}{5}\right )}{32\,d} \]
[In]
[Out]